import request from '@/utils/request'

export function listTables(data) {
  return request({
    url: '/code-gen/v1/generator/tables',
    method: 'post',
    data
  })
}

export function generatorCode(data) {
  return request({
    url: '/code-gen/v1/generator',
    method: 'post',
    responseType: 'arraybuffer',
    data
  })
}
